package org.video.common.data.model.areas.imp;


import org.video.common.data.model.areas.IAreaData;
import org.video.common.data.model.properties.IProperty;

public class OpenArea extends AbstractArea {

    public static final String OPEN_AREA_NAME = "Открытое поле";
    public static final int OPEN_AREA_KEY = 1;

    private AreaDataImp data;

    public OpenArea(){
            data = new AreaDataImp();
    }

    @Override
    public IAreaData getData() {
        for (IProperty property: properties)
            data.addSheetElement(property.getName(), property.getValues());
        return data;
    }

    @Override
    public String getAreaName() {
        return OPEN_AREA_NAME;
    }

    @Override
    public int getAreaKey() {
        return OPEN_AREA_KEY;
    }
}
